package com.snapp.web.actions.secure;

import javax.servlet.http.HttpServletRequest;

import com.snapp.web.SNAppAccess;

public class Save extends com.snapp.web.actions.Save {
	
	public String execute(HttpServletRequest req) {
		
		// if the request is secure
		if (!SNAppAccess.isSecure(req)) {
			// someone is trying to do something nasty.... return the result
			setResultCode(RESULT_CODE_ERROR);
			setResultMessage("Your session has expired.  Please log in again.");
			return snappResponse(req);
		}
		return super.execute(req);
	}
	
}
